package com.ruoyi.system.domain.equipment;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 故障知识库对象 equipment_fault_type
 *
 * @author ruoyi
 * @date 2023-04-19
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("equipment_fault_type")
public class EquipmentFaultType implements Serializable {

private static final long serialVersionUID=1L;


        /** 设备故障类型主键id */
        @TableId(value = "fault_type_id")
        @ApiModelProperty(value = "主键id")
    private Long faultTypeId;

        /** 故障类型 */
        @ApiModelProperty(value = "故障类型")
        @Excel(name = "故障类型")
    private String faultType;

        /** 故障详情 */
        @ApiModelProperty(value = "故障详情")
        @Excel(name = "故障详情")
    private String faultInfo;

        /** 故障类型编码 */
        @ApiModelProperty(value = "故障类型编码")
        @Excel(name = "故障类型编码")
    private String faultCode;

        /** 设备编码 */
        @ApiModelProperty(value = "设备编码")
        @Excel(name = "设备编码")
    private String equipmentCode;

        /** 设备名称 */
        @ApiModelProperty(value = "设备名称")
        @Excel(name = "设备名称")
    private String equipmentName;

        /** 设备类型 */
        @ApiModelProperty(value = "设备类型")
        @Excel(name = "设备类型")
    private String equipmentType;

    @ApiModelProperty(value = "设备id")
    private Long equipmentId;

        /** 创建者 */
        @ApiModelProperty(value = "创建人")
        private String createBy;

        /** 创建时间 */
        @ApiModelProperty(value = "创建时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date createTime;

        /** 解决办法 */
        @ApiModelProperty(value = "解决办法")
        @Excel(name = "解决办法")
    private String resolveMethod;

        /** 图片地址 */
        @ApiModelProperty(value = "图片地址")
    @TableField(exist = false)
    private List<String> imgPath;


}
